/* eslint-disable*/
const isDev = process.env.NODE_ENV === 'development';
const { BUILD_ENV } = process.env;

const wbURLs = {
    dev: 'https://wb.uat.shbaoyuantech.com',
    test: 'http://wb.test.shbaoyuantech.com',
    uat: 'https://wb.uat.shbaoyuantech.com',
    staging: 'https://wb.staging.shbaoyuantech.com',
    prod: 'https://wb.shbaoyuantech.com',
};

const salaryURLs = {
    dev: 'https://salary.uat.shbaoyuantech.com',
    uat: 'https://salary.uat.shbaoyuantech.com',
    prod: 'https://salary.shbaoyuantech.com',
};

const byHrURLs = {
    dev: 'https://byhr.uat.shbaoyuantech.com',
    uat: 'https://byhr.uat.shbaoyuantech.com',
    prod: 'https://byhr.shbaoyuantech.com',
};

const defaultBaseURL = isDev ? wbURLs.dev : wbURLs[BUILD_ENV];
const salaryBaseURL = isDev ? salaryURLs.dev : salaryURLs[BUILD_ENV];
const byHrBaseURL = isDev ? byHrURLs.dev : byHrURLs[BUILD_ENV];

export default defaultBaseURL;
export { salaryBaseURL, byHrBaseURL };